package com.hetao.lazy;

/**
 * Created by hetao on 2018/3/12.
 */
public class LazyOne {
    private LazyOne(){}
    //静态块，公共内存区域
    private static LazyOne lazy=null;

    public static LazyOne getInstance(){
        if(lazy==null){
            lazy=new LazyOne();
        }
        return lazy;
    }
}
